package com.example.zhiran.pojo.option.resourceoption;

/**
 * @author :robin chen
 * 资源操作返回message
 * messageCode range 201~299
 */
public enum ResourceOptionMessage {
    /**
     * 资源上传成功
     */
    RESOURCE_UPLOAD_SUCCESS(201,"res_upload_success"),

    /**
     * 资源上传失败
     */
    RESOURCE_UPLOAD_FAIL(202,"res_upload_fail"),

    /**
     * 资源下载成功
     */
    RESOURCE_DOWNLOAD_SUCCESS(211,"res_download_success"),

    /**
     * 资源下载失败
     */
    RESOURCE_DOWNLOAD_FAIL(212,"res_download_fail"),

    /**
     * 资源修改成功
     */
    RESOURCE_UPDATE_SUCCESS(221,"res_update_success"),

    /**
     * 资源修改失败
     */
    RESOURCE_UPDATE_FAIL(222,"res_update_fail"),

    /**
     * 资源删除成功
     */
    RESOURCE_DELETE_SUCCESS(231,"res_delete_success"),

    /**
     * 资源删除失败
     */
    RESOURCE_DELETE_FAIL(232,"res_delete_fail");


    private int messageCode;
    private String message;

    ResourceOptionMessage(int messageCode, String message) {
        this.messageCode = messageCode;
        this.message = message;
    }

    public int getMessageCode() {
        return messageCode;
    }

    public String getMessage() {
        return message;
    }
}
